import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import router from "@/router";
import '@/styles/index.scss'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import pinia from "@/stores";
import ui from '@/components/index.ts';
import './permission.ts'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'

const app = createApp(App)


app.use(ElementPlus, {
    locale:zhCn
})

app.use(pinia)

app.use(ui)

app.use(router)

app.mount('#app')
